package com.ap.generator.registerconsumer;

import com.ap.core.cxf.jaxb.manageconsumer.AbstractRequestRegisterConsumerTypeGeneratorBuilder;
import com.ap.core.cxf.jaxb.msghdr.MessageType;

import static com.ap.datagen.core.GeneratorHelper.buildA;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.generator.messageheader.MsgHdrTypeGeneratorBuilder.msgHdrTypeGenerator;
import static com.ap.generator.registerconsumer.RegistrationInfoTypeGeneratorBuilder.getRegistrationInfoTypeGenerator;


/**
 * 
 *
 */
public class RequestManageConsumerGeneratorBuilder extends AbstractRequestRegisterConsumerTypeGeneratorBuilder {

	@Override
	public void setupDefaults() {
		this.msgHdrGenerator = nullable(buildA(msgHdrTypeGenerator().withMsgType(MessageType.REGISTERCONSUMER)));
		this.registrationInfoGenerator = nullable(buildA(getRegistrationInfoTypeGenerator()));
	}

	/**
	 * 
	 * @return
	 */
	public static RequestManageConsumerGeneratorBuilder getRequestManageConsumerTypeGenerator() {
		return new RequestManageConsumerGeneratorBuilder();
	}
}
